package org.kevin.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName: Column
 * @Description: TODO
 * @Author: kevin
 * @Date: 2019/8/27 14:20
 * @Version: 1.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Column {

    /** name用来设置字段名 */
    String name() default "";
    /** length用来设置字段长度 */
    int length() default 0;
    /** defaultValue用来设置默认值 */
    String defaultValue() default "";
}
